# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python2-traceback2
pkgver=1.4.0
pkgrel=1
pkgdesc='Backports of the traceback module'
arch=('any')
url='https://pypi.python.org/pypi/traceback2'
license=('PSF')
depends=('python2-linecache2' 'python2-six')
makedepends=('python2-setuptools' 'python2-pbr')
source=("https://pypi.python.org/packages/source/t/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz")
sha512sums=('84c7fc291c8f2d4cee10441cdef1820aa453e631dfa91ed58e40fc205e97a9dd2101388d5689e4fdf10edfbf06bdb5b895d1635ae7218ba0c9b697d3f95f9342')

package() {
  cd ${pkgname#*-}-${pkgver}

  python2 setup.py install --root="${pkgdir}" --optimize='1'
}
